export default {
  data() {
    return {
      clientHeight: 200
    }
  },
  methods: {
    //跟踪表格的变化宽度
    initTalbeHeight: function (subHeight, callback) {
      const me = this
      this.$nextTick(function () {
        const height = document.documentElement.clientHeight - subHeight
        if (height < 200) {
          me.clientHeight = 200
        } else {
          me.clientHeight = height
        }
        window.onresize = function () {
          const height = document.documentElement.clientHeight - subHeight
          if (me.clientHeight < 200) {
            me.clientHeight = 200
          } else {
            me.clientHeight = height
          }
        }
        if (callback != null) {
          callback();
        }
      })
      // 首先在Virtual DOM渲染数据时，设置下背景图的高度．
    }
  },

}
